package com.shop.service;

import com.shop.entity.LookCartVO;
import com.shop.exception.*;

import java.util.List;

public interface ShoppingCartService {
    List<LookCartVO> lookCart(int u_id) throws DAOException;

    int deleteGoodsById(int sc_id, int sd_id) throws DAOException, DeleteGoodsFromCartFailException;

    int changeNum(int sc_id, int sd_id, int sd_num) throws DAOException, ChangeNumFromCartFailException;

    int changeState(int sc_id, int sd_id, int sd_state) throws DAOException, ChangeStateFromCartFailException;

    int clearCart(int sc_id) throws CartClearFailException, DAOException;

    int addCart(int sc_id,int gd_id,int sd_num,int sd_state) throws DAOException;

    String getGoodsImg(String gd_id) throws DAOException;

    double getTotal(int u_id) throws DAOException;

    int changeStateSingle(int sc_id, int sd_id, int sd_state) throws DAOException, ChangeStateFromCartFailException;
}
